package com.bt.lms.ui.page.teaching.supervise.action;

import com.bt.lms.ui.page.common.action.pageteaching.TeachingArrangeLabAction;
import com.bt.lms.ui.page.teaching.supervise.PageTeacherCheckInList;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.scene.layout.Pane;

/**
 * 教师值机按钮事件
 * （教学监管界面）
 */
public class TeachingCheckBtn implements EventHandler {

    /**
     * 事件实现
     * @param event the event which occurred
     */
    @Override
    public void handle(Event event) {

        //教师值机列表
        PageTeacherCheckInList pageTeacherCheckInList = new PageTeacherCheckInList(TeachingArrangeLabAction.pageSkipInfo);
        Pane pane = TeachingArrangeLabAction.pageSkipInfo.getPane();
        Integer index = TeachingArrangeLabAction.pageSkipInfo.getIndex();
        pane.getChildren().set(index,pageTeacherCheckInList);
    }
}
